Repository navigation
BUG: Skip packages that vanish between listing and cleanup - #199
Merged
Merged
Conversation
anaconda show can still list a package the API no longer has, such as ci.yml's test-package right after its cleanup removes it. The API then returns an error object, jq fails on .releases[], and since the step now runs with -e (scientific-python#198) the whole cleanup stops there, skipping every package that sorts after it. Treat a missing releases list as nothing to remove. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Let's see if this gets us to green... 🤞 🤞 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #198. Dispatched run https://github.com/scientific-python/upload-nightly-action/actions/runs/46473065329 removed the overdue versions as expected, then failed on
test-package:anaconda showstill listedtest-package, butci.yml's cleanup had already deleted it, soapi.anaconda.org/package/.../test-packagereturns{"error": "\"test-package\" could not be found"}. That jq failure was there before #198 too, but was ignored. Under-eit stops the loop, so every package sorting after it (uhi, uproot, xarray, zarr in that run) was skipped.This uses
.releases[]?so a package with no releases in the response has nothing to remove. Other failures, such asanaconda removeerrors, still fail the run.🤖 Generated with Claude Code